package com.bkgy.controller.allprocessRcl1870.controller;

import com.bkgy.controller.allprocessRcl1870.dto.AllProcessTbYieldRcl870Requst;
import com.bkgy.controller.allprocessRcl1870.service.AllProcessRcl1870Service;
import com.bkgy.controller.allprocessRcl2150.dto.AllProcessTbYieldRcl2150Requst;
import com.bkgy.controller.allprocessRcl2150.service.AllProcessRcl2150Service;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@Tag(name = "重卷1870明细表")
@RestController
@RequestMapping("/allprocess")

public class TbYieldRcl1870Controller {
    @Autowired
    private AllProcessRcl1870Service allProcessRcl1870Service;

    @Operation(summary = "RCL1870明细表-分页", description = "RCL1870明细表")
    @PostMapping("/rcl1870detais")
    public ResultData rcl1870detais(@RequestBody @Valid AllProcessTbYieldRcl870Requst request)
    {
        return allProcessRcl1870Service.rcl1870detais(request);
    }
}